#!/bin/bash

cd /tmp
curl -O https://oss.liufq.com/docker-hub/kibana-7.8.1-x86-V2.0R24C01.zip
curl -O ftp://admin:ci_CcXx_4202ftp@10.20.140.138/tools/docker/image/kibana-7.8.1.tar
docker load -i kibana-7.8.1.tar

docker rm -f kibana
#docker run -d --name kibana --network host --restart always \
#  -e ELASTICSEARCH_HOSTS=http://es1.ahcloud-private.com:9201 \
#  kibana:7.8.1

docker run -d --name kibana --network host --restart always \
  -e ELASTICSEARCH_HOSTS=http://10.50.44.239:9201 \
  kibana:7.8.1